package oop2.Task2;

public class Tank {
    String brand;
    double horsepower; //马力
    int ammo;   //载弹量，单位为吨

    public Tank(String brand, double horsepower, int ammo) {
        this.brand = brand;
        this.horsepower = horsepower;
        this.ammo = ammo;
    }

    public void show() {
        System.out.println("坦克品牌:" + brand + ",马力:" + horsepower + ",携带弹头量:" + ammo+"吨");
    }

    public void start() {
        System.out.println(brand + "坦克启动了");
    }

    public void climb() {
        System.out.println(brand + "坦克爬坡");
    }

}
